package org.ysh.core.utils;

import org.apache.shiro.crypto.hash.SimpleHash;

public abstract class PasswordUtils {

    public static String encryptPassword(String password,String salt) {
        SimpleHash hash = new SimpleHash("MD5", password, salt.toCharArray(),2);
        return hash.toHex();
    }
}
